package org.example.util;

import java.util.regex.Pattern;

public class VerifyUtil {

    public static boolean validateUsername(String username) {
        return Pattern.matches("^[a-zA-Z][a-zA-Z0-9_]{3,17}$", username);
    }

    public static boolean validatePassword(String password) {
        return Pattern.matches("^[a-zA-Z0-9]{4,18}$", password);
    }
}
